package router

import (
	"cgs-server/server"
	"cgs-server/server/cgs/app/api"
	"cgs-server/server/cgs/app/store/mongo"
)

func initWorksheetShortCutRouter() {
	storeIns, _ := mongo.GetMongoFactory()

	handler := api.NewWorksheetShortCutHandler(storeIns)

	server.Get("/api/app/worksheet/shortcut/get", handler.Get, "", server.Login)
	server.Post("/api/app/worksheet/shortcut/delete", handler.Delete, "", server.Login)
	server.Post("/api/app/worksheet/shortcut/save", handler.Save, "", server.Login)
	server.Post("/api/app/worksheet/shortcut/update", handler.Update, "", server.Login)
	server.Post("/api/app/worksheet/shortcut/update-worksheet-sort", handler.Update, "", server.Login)
}
